

package com.maoshi.shop.user.comment.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.maoshi.shop.user.comment.model.UserLevelLog;
import com.maoshi.shop.user.comment.dao.UserLevelLogMapper;
import com.maoshi.shop.user.comment.service.UserLevelLogService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 *
 *
 * @author LGH
 * @date 2020-02-26 16:03:14
 */
@Service
@AllArgsConstructor
public class UserLevelLogServiceImpl extends ServiceImpl<UserLevelLogMapper, UserLevelLog> implements UserLevelLogService {

    private final UserLevelLogMapper userLevelLogMapper;

    @Override
    public Page<UserLevelLog> getPage(Page<UserLevelLog> page, UserLevelLog userLevelLog) {
        return userLevelLogMapper.getPage(page,userLevelLog);
    }

    @Override
    public Integer getMaxLevelByUserId(String userId) {
        return userLevelLogMapper.getMaxLevelByUserId(userId);
    }
}
